import set from '@dfeidao/atom-web/global/set';
import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
import hide from '@dfeidao/atom-web/ui/hide';

export default async function a005(fd: IFeidaoAiBrowserComponent, e: Event) {
	// // todo


	const div = e.currentTarget as HTMLDivElement;
	const no = div.getAttribute('data-no');
	const name = div.getAttribute('data-name');
	const arr = Array();
	arr[0] = {
		staff_no: no,
		staff_name: name
	};
	set('arr', arr);
	fire('zj-000004', 'a005');
	hide(fd.data.node);

}
